package pjkanri.service;

import java.util.List;

import pjkanri.dao.DAOException;
import pjkanri.dao.ProjectDAO;
import pjkanri.entity.Project;

public class ProjectService{

	public static void insert(Project prj) throws DAOException {
		ProjectDAO prjdao = new ProjectDAO();
		prjdao.insert(prj);
	}
	
	public static void update(Project prj) throws DAOException {
		ProjectDAO prjdao = new ProjectDAO();
		prjdao.update(prj);
	}
	
	public static List<Project> getProjectList() throws DAOException {
		ProjectDAO prjdao = new ProjectDAO();
		return prjdao.getProjectList();
	}
	
}